package com.sky.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sky.entity.Setmeal;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sky.query.SetmealQuery;
import com.sky.vo.SetmealVO;
import org.apache.ibatis.annotations.Select;

/**
* @author 马毅爽
* @description 针对表【setmeal(套餐)】的数据库操作Mapper
* @createDate 2023-11-06 19:31:40
* @Entity com.sky.entity.Setmeal
*/
public interface SetmealMapper extends BaseMapper<Setmeal> {

    Page<SetmealVO> queryPage(Page<SetmealVO> page, SetmealQuery setmealQuery);

    @Select("select count(id) from setmeal where status = #{status}")
    Integer countByStatus(Integer status);
}




